class SComponent:
    def __init__(
        self,
        is_facing_up: bool,
        ndest: int,
        destx: list[int],
        desty: list[int]
    ) -> None:
        self.is_facing_up = is_facing_up
        self.ndest = ndest
        
        self.dest_sorted: list[tuple[int, int]] = [(destx[i], desty[i]) for i in range(ndest)]
        self.dest_sorted.sort()
        
        self.destx = destx
        self.desty = desty
